home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 202 < prev    next >
Text File  |  1996-08-06  |  2KB  |  39 lines

  1. Path: oskar.Hagenuk.de!news
  2. From: berg@hagenuk.de (Jens Berg)
  3. Newsgroups: comp.std.c
  4. Subject: Re: PC Parallel port I/O
  5. Date: 26 Jan 1996 13:05:21 GMT
  6. Organization: Hagenuk Telecom GmbH
  7. Message-ID: <4eajih$iu6@oskar.Hagenuk.de>
  8. References: <4e8344$975@unix13.u-3mrs.fr>
  9. Reply-To: berg@hagenuk.de (Jens Berg)
  10. NNTP-Posting-Host: kst103_hat_jens_berg.hagenuk.de
  11. X-Newsreader: IBM NewsReader/2 v1.02
  12.  
  13. In <4e8344$975@unix13.u-3mrs.fr>, kris@esil.univ-mrs.fr (Christophe Cassar) writes:
  14. >Does anybody know how to receive more than 5 information on Parallel port.
  15.  
  16. I assume that "5 information" means you want to read in more than 5 different signals from the
  17. parallel port. In fact, there is a possibility:
  18. You can read in 4 more signals over the connectors STROBE, AUTOFEED, RESET and SELECT_IN.
  19. Normally these pins are used as outputs. Fortunately these outputs are "open collector".
  20. If you program these port bits (via control port, that is ports base address + 2) to generate
  21. high output (5V) this level is provided via pull up resistors. If your external hardware
  22. generates enough output current to drive low level against these pull ups, you
  23. can read the information back via status port (ports base address + 1).
  24. Keep in mind, that STROBE, AUTOFEED and SELECT_IN are inverted:
  25. You program must, for instance, set ctrlport, bit 0 to 0 to get 5V at the physical pin STROBE. 
  26. If the physical pin STROBE is at 5V level, you will read statusport, bit0 to be 0 (inverted 
  27. again!).
  28. The RESET pin does not have this inversions, it is straight forward.
  29.  
  30. Hope this helps ...
  31. [Jens]
  32.  
  33. Jens Berg
  34. Hagenuk GmbH, Kiel - Germany
  35. Phone: +49 431 8818 70020, email: berg@hagenuk.de
  36. #include <standard.disclaimer>
  37. I only speak for myself!
  38.  
  39.